package org.zfes.snowier.zbss.xzy;

import java.util.Optional;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.util.DigestUtils;
import org.zfes.snowier.boot.starter.configrations.datasourse.DynamicDataSourceRegister;
import org.zfes.snowier.boot.starter.configrations.swagger.EnableSnowierSwagger2;
import org.zfes.snowier.common.chains.session.BizSession;
import org.zfes.snowier.common.chains.session.ISession;
import org.zfes.snowier.common.eventpub.BasicEvenPubMsg;
import org.zfes.snowier.common.eventpub.SimpleSubcriber;
import org.zfes.snowier.common.socket.enums.TcpEventTopic;
import org.zfes.snowier.common.socket.server.chief.NettyChiefServer;
import org.zfes.snowier.core.util.AppCtxUtil;
import org.zfes.snowier.core.util.encypt.MD5Util;

@ServletComponentScan
@EnableConfigurationProperties
@Import({DynamicDataSourceRegister.class})
@EnableSnowierSwagger2
@SpringBootApplication(
		scanBasePackages= { 
				"org.zfes.snowier.boot.starter",
				"org.zfes.snowier"}
		)
public class Application {
	public static void main(String[] args) throws BeansException, Exception {
		SpringApplication.run(Application.class, args);
		AppCtxUtil.cfg.getBean(NettyTest.class).run();
	}


}
